Skip to content

Disable test generation for private nested classes in plugin #864 #865

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

volivan239
Copy link
Collaborator

Description

Now, methods from private nested classes won't be tested by UTBot plugin. This also implies that:

  • private nested classes won't be shown in member list when launching UTBot on their containing classes
  • generate tests with UTBot... action will be disabled when cursor is in scope of private nested class

Fixes #864

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Manual Scenario

  • Launched UTBot on example from attached issue -- works as expected
  • Launched UTBot while cursor is somewhere inside code of private nested class -- action is disabled

Checklist (remove irrelevant options):

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • The change contains enough commentaries, particularly in hard-to-understand areas
  • New documentation is provided or existed one is altered
  • No new warnings
  • New tests have been added
  • All tests pass locally with my changes

@volivan239 volivan239 marked this pull request as ready for review September 9, 2022 15:47
@volivan239 volivan239 force-pushed the volivan239/filter_private_nested_classes branch from 00ca0ea to e113cf6 Compare September 21, 2022 12:52
@volivan239 volivan239 enabled auto-merge (squash) September 21, 2022 12:59
@volivan239 volivan239 merged commit f53b7f6 into main Sep 21, 2022
@volivan239 volivan239 deleted the volivan239/filter_private_nested_classes branch September 21, 2022 13:30
@denis-fokin denis-fokin added this to the Release preparation milestone Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI. Private nested classes should be hidden
3 participants